package org.blog.druid;

import com.alibaba.druid.support.http.WebStatFilter;

import javax.servlet.annotation.WebFilter;
import javax.servlet.annotation.WebInitParam;

/**
 * 配置druid的过滤规则，监控所有的页面，并排除以下exclusions
 */
@WebFilter(filterName = "druidWebStatFilter", urlPatterns = "/*",
    initParams = {
        @WebInitParam(name="exclusions",value="*.js,*.css,*.gif,*.jpg,*.png,*.bmp,*.ico,/druid/*")//设置忽略的资源路径
    }) // /*拦截所有的请求
//WebStatFilter druid的检测器
public class DruidStatFilter extends WebStatFilter {

}